package com.xiangge.domain;

public class Rectangle2 {
    private double length;
    private double width;

    // get和set方法...
    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    // 计算面积的方法
    public double getArea() {
        return length * width;
    }
}

